package com.cuixichang.minimalism.transfer.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.cuixichang.minimalism.basal.core.BaseVO;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/**
 * 系统路由绑定关系表对象实体
 *
 * @author cuixichang
 * @date 2024-12-18
 */

@ApiModel(value = "IRouterRelation展示对象" , description = "系统路由绑定关系表" ,parent = BaseVO.class)
@Data
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
public class IRouterRelationVO extends BaseVO{
    @ApiModelProperty(value = "路由Id", name = "routerId")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long routerId;
    @ApiModelProperty(value = "绑定关系Id", name = "relationId")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long relationId;
    @ApiModelProperty(value = "绑定是角色还是权限【0:绑定权限(默认);1:绑定角色】", name = "roleRelation")
    private Boolean roleRelation;
}
